<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<c:set var="jpath" value="${pageContext.request.contextPath }"/>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="${jpath}/static/qd/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="${jpath}/static/qd/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="${jpath}/static/qd/css/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="${jpath}/static/qd/css/nav.css"/>
<link rel="stylesheet" type="text/css" href="${jpath}/static/qd/css/rongzichanpin.css"/>

<title>duijiechenggong</title>
</head>
<body>
	<div id="nav" class="backcolor">
		<div class="container">
			<div class="row">
				<div class="col-xs-2"><a href="javascript:void(0);" onclick="history.go(-1)"><img src="${jpath}/static/qd/img/back_white.png" height="20px" width="20px"/></a></div>
				<div class="col-xs-8 white-text">融资产品</div>
				<input id="iname" type="hidden" value="${industryName}"/>
				<div class="col-xs-2"></div>
			</div>
		</div>
	</div>
		
	<div class="container pad_top">
		<div  class="row">
			<div class="col-xs-3 clear_padding left_title">
				<c:forEach var="u" items="${ui}" varStatus="status">
					<c:if test="${status.index==0}">
						<div industryName="${u.industryName}" class="menu bgc_org align_center white-text bgc_blu">${u.industryName}</div>
					</c:if>
					<c:if test="${status.index!=0}">
						<div industryName="${u.industryName}" class="menu bgc_org align_center white-text">${u.industryName}</div>
					</c:if>
				</c:forEach>
			</div>
			<div class="col-xs-9 clear_padding">
				<c:forEach var="p" items="${pro}" varStatus="status">
					<div class="chanpin row set_b_border set_left_pad" pid="${p.id}">
						<div class="col-xs-6 set_line_height bgc_blu set_padding">
							<div class="l_font_size white-text">${p.money}</div>
							<div class="align_right s_font_size white-text">${p.title}</div>
						</div>
						<div class="col-xs-6 pad_top_s set_r_border clear_padding">
							<div class="xs_font_size set_blu_color set_line">公司规模：${p.companySize}</div>
							<div class="xs_font_size set_blu_color set_line">融资周期：${p.cycle}</div>
							<div class="xs_font_size set_blu_color set_line">联系电话：${p.contactUs}</div>
						</div>
						<div id="daojishi" class="col-xs-12 clear_padding ms_font_size set_blu_color">
							<span class="djs_pad">贷款倒计时：${p.releaseTimeString}</span>
						</div>
					</div>
				</c:forEach> 
			</div>
		</div>
	</div>
<script type="text/javascript" >
$(function(){
	var iname = $("#iname").val();
	for (var i=0;i<$(".menu").length;i++){
		if($(".menu").eq(i).attr("industryname")==iname){
			$(".menu").eq(i).addClass("bgc_blu");
		}else{
			$(".menu").eq(i).removeClass("bgc_blu");
		}
	}
	$(".chanpin").click(function(){
		var _this = $(this);
		var pid = _this.attr("pid");
		location.href="${jpath}/qd/xiangguanchanpin?pid="+pid;
	});
});
   $(document).ready(function(){
       $(".left_title>.menu").click(function(){
       		var industryName =  $(this).attr("industryName");
           $(".left_title").find(".menu").each(function(index,e){
               $(e).removeClass("bgc_blu");
           });
           $(this).addClass("bgc_blu");
		   location.href="${jpath}/qd/rongzichanpin?industryName="+industryName;
       });
   });
</script>
</body>
</html>
